package day1026.Qiche;

public class JianCe {
    private String phone;//电话
    private String address;//地址

    public JianCe(String phone, String address) {
        this.phone = phone;
        this.address = address;
        System.out.println("地址在"+this.address+"电话为:"+this.phone);
    }

    public void check(Car c){
        c.start();
        c.brake();
        c.accelerate();
    }
}
